import request from '@/utils/request'
// 获取区域列表
const getQylist = (data) => request.get('/api/vm-service/region/search', {
  params: {
    ...data
  }
})
// 新增区域
const newQu = (data) => request.post('/api/vm-service/region', data)
// 删除区域
const delqy = (id) => request.delete(`/api/vm-service/region/${id}`)
// 区域详情
const getQyzq = (data) => request.get('/api/vm-service/node/search', {
  params: {
    ...data
  }
})
// 修改区域
const xgQy = (data) => request.put(`/api/vm-service/region/${data.id}`, data)
export {
  getQylist,
  newQu,
  delqy,
  getQyzq,
  xgQy
}
